<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        class Num {
            constructor(num){
                this.num = num
            }
            isPrime(nm){
                var flag = true ; 
                for( var i = 2 ; i <= nm/2 ; i ++ ) {
                    if ( nm % i == 0 ) {
                        flag = false ; 
                        break ;
                    }
                }
                return flag  ;
            }
            getMax( ){
                var arr = [] ; 
                for ( let i = 2 ; i < this.num ; i ++ ){
                    if ( this.isPrime( i ) && this.num % i == 0 ){
                        arr.push(i);
                    }
                }
                return arr ; 
            }
        }
        let numL = new Num(13195); 
        console.log(numL.getMax());
    </script>
</body>
</html>